﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Profile.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="contentPane" runat="server">

    <%
        List<WebApp.Models.Album> albums = (List<WebApp.Models.Album>)ViewData["Model"];
        foreach (WebApp.Models.Album album in albums)
        {
            %>
                <div class="albumTile">
                    <a href="<%=Url.Action("Album", "Profile", new { id=album.Id }) %>">
                        <img alt="<%=album.Cover.Name %>" src="<%=album.Cover.Picture %>" /><br /> 
                        <%=album.Name %>
                    </a>
                </div>
            <%
        }
    %>
    <div class="clear"></div>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ProfileHead" runat="server">
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="contentLinks" runat="server">
<h1>Photos</h1>
<a href="#">Upload a Photo</a>
</asp:Content>
